package gizwits.centerair.way;

import java.util.HashMap;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

import gizwits.kit.Address;
import gizwits.kit.HttpKit;

public class TestgetUsedDateByHomeId{
	public static void main(String[] args) {
		run(978583);
	}
	
	public static JSONObject run(int homeId) {
		Map<String, Object> params = new HashMap<>();
		params.put("method", "getUsedDateByHomeId");
		params.put("homeId", homeId);
		params.put("startDate", "2016-11-18");
		params.put("endDate", "2016-11-18");
		String result = HttpKit.post(Address.cenac_publish, params);
		return JSONObject.parseObject(result);
	}
}
